package com.mjx.algorithm.oj;

import java.util.Scanner;

/**
 * 水
 * Created by 梅京翔 on 2017 02 11下午 8:42.
 */
public class problem1236 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();
        int d = scanner.nextInt();
        System.out.println((a+c)+" " + (b+d));
    }
}
